<script setup>
// 首页组件
</script>

<template>
  <div class="home-container">
    <h1>欢迎使用ERP系统</h1>
    <p>这是ERP系统的首页内容区域。</p>
    <div class="dashboard-cards">
      <div class="card">
        <div class="card-title">总销售额</div>
        <div class="card-value">¥1,258,900</div>
        <div class="card-change">+12.5% 较上月</div>
      </div>
      <div class="card">
        <div class="card-title">订单数量</div>
        <div class="card-value">8,542</div>
        <div class="card-change">+8.3% 较上月</div>
      </div>
      <div class="card">
        <div class="card-title">用户数量</div>
        <div class="card-value">12,890</div>
        <div class="card-change">+5.2% 较上月</div>
      </div>
      <div class="card">
        <div class="card-title">商品数量</div>
        <div class="card-value">3,456</div>
        <div class="card-change">+3.1% 较上月</div>
      </div>
    </div>
  </div>
</template>

<style scoped>
.home-container {
  padding: 20px;
}

h1 {
  color: #333;
  font-size: 24px;
  margin-bottom: 20px;
}

p {
  color: #666;
  font-size: 16px;
  margin-bottom: 20px;
}

.dashboard-cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.card {
  flex: 1;
  min-width: 200px;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card-title {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.card-value {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.card-change {
  font-size: 12px;
  color: #1890ff;
}
</style>